package com.huangliusong.utils;

import java.util.Random;

public class KeyUtils {
	/**
	 * 生成唯一主键
	 * 
	 * @return String
	 */
	public static synchronized String genUniqueKey() {
		// 随机数
		Random random = new Random();
		Integer number = random.nextInt(900000) + 100000;
		return System.currentTimeMillis() + String.valueOf(number);
	}
}
